package com.health.teahouse.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.annotation.Excel;
import com.health.common.core.domain.BaseEntity;

/**
 * 商品订单对象 goods_order
 * 
 * @author yangsl
 * @date 2023-11-30
 */
public class GoodsOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long orderId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private Long goodsId;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private Long goodsPrice;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long goodsNum;

    /** 商品总价 */
    @Excel(name = "商品总价")
    private Long goodsPrices;

    /** 付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    /** 会员账号 */
    @Excel(name = "会员账号")
    private Long memberId;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setGoodsPrice(Long goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public Long getGoodsPrice() 
    {
        return goodsPrice;
    }
    public void setGoodsNum(Long goodsNum) 
    {
        this.goodsNum = goodsNum;
    }

    public Long getGoodsNum() 
    {
        return goodsNum;
    }
    public void setGoodsPrices(Long goodsPrices) 
    {
        this.goodsPrices = goodsPrices;
    }

    public Long getGoodsPrices() 
    {
        return goodsPrices;
    }
    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNum", getOrderNum())
            .append("goodsId", getGoodsId())
            .append("goodsPrice", getGoodsPrice())
            .append("goodsNum", getGoodsNum())
            .append("goodsPrices", getGoodsPrices())
            .append("paymentTime", getPaymentTime())
            .append("memberId", getMemberId())
            .toString();
    }
}
